package com.example.zbh.dsliao.ui.fragment;

import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;

import com.easemob.EMNotifierEvent;
import com.example.zbh.dsliao.presenter.BasePresenter;

/**
 * Created by zbh on 15/11/18.
 */
public abstract class MVPBaseFragment<V, T extends BasePresenter<V>> extends BaseFragment {
    protected T t;

    @Override
    protected void initPresenter() {
        super.initPresenter();
        t = createPresenter();
        t.attachView((V) this);
    }


    protected abstract T createPresenter();


    @Override
    public void onDestroy() {
        super.onDestroy();
        t.detachView();
    }

}
